package com.sunwayworld.basemodule.business.operationbatch.resource;

import com.sunwayworld.framework.data.page.Page;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sunwayworld.basemodule.business.operationbatch.bean.LimsOrderTaskSupplementBean;
import com.sunwayworld.basemodule.business.operationbatch.service.LimsOrderTaskSupplementService;
import com.sunwayworld.framework.support.base.resource.GenericResource;

@RequestMapping("/secure/basemodule/business/order-task-supplements")
public interface LimsOrderTaskSupplementResource extends GenericResource<LimsOrderTaskSupplementService, LimsOrderTaskSupplementBean, Long> {
    @PostMapping("/r/supplement-to-columns/queries")
    Page<LimsOrderTaskSupplementBean> selectOrderTaskSupplementToColumns(RestJsonWrapperBean wrapper);

    @PostMapping("/{orderTaskId}/update/supplement")
    void updateSupplementByOrderTask(@PathVariable Long orderTaskId, RestJsonWrapperBean wrapper);
}
